/*F(***************************************************************************
 * File name : Mxddemux_fsm.h
 * Project : T622X
 * Module : CMMB
 * Date : 2010-07-01
 * Version : 1.0
 *----------------------------------------------------------------------------*
 *----------------------------------------------------------------------------*
 *                                    DESCRIPTION
 *    description
 *
 *----------------------------------------------------------------------------*
 *----------------------------------------------------------------------------*
 *                                    EVOLUTION
 *----------------------------------------------------------------------------*
 *       Date        |        Author     |      Arnb    |      Description
 *----------------------------------------------------------------------------*
 *  2010-07-01   | jiangtao Zeng | Create      |      Create
 *----------------------------------------------------------------------------*
 *----------------------------------------------------------------------------*
 *
 ***************************************************************************)F*/
#if !defined(_MXDDEMUX_FSM_H_)
#define _MXDDEMUX_FSM_H_


#define M_DEMUX_FRAME_BUFFER_SIZE    (80*1024)
#define M_DEMUX_BUFFER_SIZE    (M_DEMUX_FRAME_BUFFER_SIZE*10)

#if defined(_MXDDEMUX_FSM_C_)

/*define message*/
enum
{
    F_MAPI_CMMB_DEMUX = 0
};

#define F_MAPI_CMMB_DEMUX_IND      MC_PCC_FUNCTION_TYPE( F_MAPI_CMMB_DEMUX, PCC_T_IND )
MC_PCC_HEADER(PROCESS_CMMBDRV, PROCESS_CMMBDEMUX,  MAPI_CMMB_DEMUX_IND, MC_RTK_PROCESS_OPERATION(PROCESS_CMMBDEMUX, F_MAPI_CMMB_DEMUX_IND))
MC_PCC_BEGIN_STRUC(t_cmmb_demux_ind)
MC_PCC_FIELD(u8*, pdata)
MC_PCC_FIELD(u32, v_size)
MC_PCC_FIELD(u32, b_eb)
MC_PCC_END_STRUC(t_cmmb_demux_ind)

u8 *cmmbdemux_buff = NULL;
u32 gv_cmmbdrv_send = 0;
u32 gv_cmmbdrv_demux = 0;
MXD_BOOL g_bMxdDemuxerRunning = FALSE;
#else
extern u8* cmmbdemux_buff;
extern u32 gv_cmmbdrv_send;
extern u32 gv_cmmbdrv_demux;
extern MXD_BOOL g_bMxdDemuxerRunning;
#endif


#endif /*_MXDDEMUX_FSM_H_*/
